<include file="__THEME__/header" />
<link rel="stylesheet" href="__APP__/gift.css" type="text/css" charset="utf-8" />
<script src="__APP__/js/gift.js" type="text/javascript"></script>
<div class="content_holder">
<div class="content no_bg boxShadow">
<include file="../Public/_mainNav" />
  <div class="main no_l">
    <div class="mainbox">
      <div class="mainbox_appC" style="margin-right:0">
        <div class="tab-menu" > 
          <ul >
            <volist name = 'categorys' id = 'category'><li  id='item{$category['id']}'  class=""><a href="javascript:void(0)" onclick='selectItems({$category['id']})'><span>{$category['name']}</span></a></li></volist>
          </ul>
        </div>
        <div class="giftBox">
          <php>if($uid&&$uid!=$mid){</php>
          <div style="font-size:16px;font-weight:bold;color:#666;margin-top:10px;">已选定获赠者： <img src="{$uid|getUserFace}" /> {$uid|getUserName}</div>
          <php>}</php>
          <div class="f14px fB lh35">选择一个礼物:</div>
          
          <volist name = 'categorys' id = 'category'>
          <div class="giftblock" id='gifts{$category['id']}' style="display:none;" >
          <ul>
            <volist name = "category['gifts']" id='gift'>
              <li class='gifts hand' title="点击选择" onclick='sendGift({$gift['id']},{$gift['price']})' id='gift{$gift['id']}'>
              <img src="{$gift['img']|realityImageURL}" width="70" height="70" /><br />
              {$gift['name']}<br />
              限量：{$gift['num']}个<br />
              {$gift['price']}点{$money.alias}
              </li>
            </volist>
            <div class="c"></div>
          </ul>
        </div>
        </volist>
        <a name="sendto" id="sendto"></a>
        <div id='gift_info'></div>
        <form action="__URL__&act=send" method='post' onsubmit='return check()' model-node='event_post'>
          <div style="margin-top:20px;">
            <h2 class="f14px fB lh30">我目前拥有的 {$money.alias} 是： {$money.value}</h2>
          </div>
          <div style="margin-top:30px;">
            <h2 class="f14px fB lh30 mb5">选择接收人：</h2>
            <div class="clearfix" style="width:360px;">
              <php>if($uid){</php>
              {:W('SearchUser',array('name'=>'fri_ids','max'=>1,'uids'=>$uid,'editable'=>0))}
              <php>}else{</php>
              {:W('SearchUser',array('name'=>'fri_ids','max'=>1))}
              <php>}</php>
            </div>
            <div style="margin-top:20px;">
              <h2 class="f14px fB lh30 mb5">附加消息：</h2>
              <p style="margin:0 0 5px 0; padding:0;">不能超过200个字符</p>
              <textarea cols="50" rows="6" class="Text20" name='sendInfo' id='sendInfo'></textarea>
            </div>
            <div class="mt20">
              <div class="lh30 fB f14px mb5">选择赠送的方式：</div>
              <div>
                <div class="left">
                  <input checked="checked" value="1" id="public" name="sendWay" type="radio" class="sendWay" />
                </div>
                <div style="margin:0 0 20px 20px;" class="lh18">
                  <label for="public"><strong>公开赠送</strong><br />
                    <span class="cGray2">所有人都能看见你的名字、赠送的礼物和附加消息。<br />
                    这个礼物将显示在接收人的礼物盒，并可发布动态到微博。</span></label>
                </div>
                <div class="left">
                  <input value="2" id="private" name="sendWay" type="radio" class="sendWay"/>
                </div>
                <div style="margin-left:20px;" class="lh18">
                  <label for="private"> <strong>私下赠送</strong><br />
                    <span class="cGray2">只有接收礼物的人能看见你的名字和附加消息。<br />
                    这个礼物将只出现在接收人的礼物盒，且其他人无法知道发送人是谁。</span></label>
                </div>
                <br />
                <div class="left">
                  <input value="3" id="anonymous" name="sendWay" type="radio" class="sendWay" />
                </div>
                <div style="margin:0 0 20px 20px;" class="lh18">
                  <label for="anonymous" > <strong>匿名赠送</strong><br />
                    <span class="cGray2">接收礼物的人只能看见你的附加消息，不显示你的名字。<br />
                   这个礼物将只出现在接收人的礼物盒，且其他人无法知道发送人是谁。</span></label>
                </div>
                <input type='hidden' name='giftId' value='' id='gift_id'>
                <input type='hidden' name='giftPrice' value='' id='gift_price'>
                <input type='hidden' name='moneyAlias' value='{$money.alias}' id='money_alias'>
                <input type='hidden' name='moneyValue' value='{$money.value}' id='money_value'>
                </input>
              </div>
            </div>
            <div class="mt10">
              <input type="submit" class="btn_b" style="margin-right:5px;" value="赠送礼物" event-node="submit_btn"/>
            </div>
          </div>
        </form>
      </div>
    </div>
    <div class="c"></div>
  </div>
</div>
</div>
</div>
<include file="__THEME__/public_footer" />
<script>
$(function(){
	selectItems(1);
});
</script>